home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2744 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.8 KB

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: playing 14 bit samples. how?
  5. Date: 2 Feb 1996 16:30:36 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4ete7c$keg@sunsystem5.informatik.tu-muenchen.de>
  9. References: <john.hendrikx.48y3@grafix.xs4all.nl> <4enpm4$o1f@sunsystem5.informatik.tu-muenchen.de> <19960131.48DC00.DF59@ao038.du.pipex.com>
  10. NNTP-Posting-Host: hphalle5.informatik.tu-muenchen.de
  11. Originator: fischerj@hphalle5.informatik.tu-muenchen.de
  12.  
  13.  
  14. In article <19960131.48DC00.DF59@ao038.du.pipex.com>, m.hendry@dial.pipex.com (Mathew Hendry) writes:
  15. |> Juergen "Rally" Fischer (fischerj@Informatik.TU-Muenchen.DE) wrote:
  16. |> : John Hendrikx (john.hendrikx@grafix.xs4all.nl) wrote:
  17. |> : 
  18. |> : You calibrate the audio hardware, which does maybe not exactly play
  19. |> : 1/64 of max volume if volume=1 selected.
  20. |> 
  21. |> In fact, the hardware reference manual states that volume 1 plays at -36.1dB
  22. |> (rather than -36.0dB) relative to volume 64, so even the nominal value
  23. |> is slightly off. In practice the difference in volume varies with frequency as
  24. |> well, and this too has to be compensated for.
  25. |> 
  26. |> : : sample and using the volume to compensate for which top 8-bits your playing.
  27. |> : 
  28. |> : : (The other method to use 2 channels playing at different volumes seems easier
  29. |> : : to use though).
  30. |> : 
  31. |> : Yes, because you don't need to sync them so exactly.
  32. |> 
  33. |> If they aren't synced exactly, you're adding more noise than you would get by
  34. |> playing a single 8 bit sample - as soon as the two "halves" of the sample
  35. |> become desynced, you'll be playing the 8 most significant bits of one sample
  36. |> along with the 6 least significant bits of another => nasty noise.
  37. |> 
  38. |> The volume method is simple to use because it only requires you to split each
  39. |> sample in two and right shift the less significant "half" by two bits. After
  40. |> that it's all up to the DMA. The modulation method requires a bit more initial
  41. |> processing than that.
  42.  
  43. Yeah, but "you don't need to sync them so exactly" :)
  44.  
  45. Well, I assume both dma channels running a wave.
  46.  
  47. I think the "initial processing" has to find data that results in 2 waves.
  48. you can get a special value by different combinations of data and volume,
  49. but only the ones building continous waves to both channels imho will
  50. run without noise.
  51.  
  52. But, if both channels run a wave, you don't need to sync them so exactly,
  53. because if they run a bit asyncron, there is not noise but kind of errorwave.
  54. (you won't loose 14bit for just running 1 word async).
  55.  
  56. |> 
  57. |> -- Mat.
  58. ------------------------------------------------------------------------
  59.    fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)   =:)
  60.  
  61.